<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>会员中心</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" content="夜读书">
    <meta name="description" content="夜读书中文网">
    <meta name="keywords" content="读书,阅读,小说,文学">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/yds.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/ucenter.css') }}">
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body>
@include('books.partials.navtop')
@include('books.partials.nav')
<div id="yds_screen">
<div id="yds_content" class="clearfix">
@include('ucenter.partials.umenu')
<div class="spaceList userlist">
    <h1>{{$users->user_name}}关注的人<span class="subtitle">共有{{count($guanzhus)}}人</span></h1>
    @if(count($guanzhus)!=0)
    @foreach($guanzhus as $guanzhu)
    <div class="liec">
        <table class="ydstable">
        <tbody>        
            <tr>
                <td class="avatar">
                    <a href="{{url('u')}}/{{$guanzhu->users->uid}}">        
                    @if($guanzhu->users->avatar_file_min!="")
                        <img src="http://www.yedushu.com/{{ $guanzhu->users->avatar_file_min }}" title="{{$guanzhu->users->user_name}}" alt="{{$guanzhu->users->user_name}}"></img>
                    @else
                        <img src="http://www.yedushu.com/usersface/default/avatar-min.png" title="{{$guanzhu->users->user_name}}" alt="{{$guanzhu->users->user_name}}"></img>
                    @endif
                    </a>
                </td>
                <td class="update">
                    <div class=""><span class="name">{{$guanzhu->users->user_name}}</span><span class="city">{{$guanzhu->users->province}} {{$guanzhu->users->city}}</span></div>
                    <div class=""><span class="time">加入时间：{{date('Y-m-d H:i',$guanzhu->users->reg_time)}}</span></div>
                </td>
                <td class="opts">
                @if(Session::get('nameid') != $guanzhu->users->uid)
                @if($guanzhu->gzmark != 1)
                <a href="{{url('u/fellow')}}/{{$guanzhu->users->uid}}">关注此人</a>
                @else
                <a href="{{url('u/unfellow')}}/{{$guanzhu->users->uid}}">取消关注</a>
                @endif                          
                <a href="">发送纸条</a>
                @endif
                </td>
            </tr>        
        </tbody>
        </table>
    </div>
    @endforeach
    @else
        <div class="nodata">还没有关注的人</div>
    @endif
</div>
</div>
</div>
@include('books.partials.footer')
</body>
</html>
